﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ITAP.ShprossesBuilder.Operations;

namespace ITAP.ShprossesBuilder.Editor
{
    public enum DiagonalOffsetRelative
    {
        ToHorizontalVertical, 
        ToDiagonal
    }
    public partial class MoveWithOffsetFormDiagonal : Form
    {
        public bool OffsetWithCopy
        {
            get
            {
                return checkBoxOffsetWithCopy.Checked;
            }
        }

        public int Offset
        {
            get
            {
                return (int)numericUpDownOffset.Value;
            }
        }

        private DiagonalOffsetRelative offsetRelative;
        public DiagonalOffsetRelative OffsetRelative
        {
            get
            {
                return offsetRelative;
            }
        }

        public MoveWithOffsetFormDiagonal()
        {
            InitializeComponent();
        }

        private void radioButtonHorizontal_CheckedChanged(object sender, EventArgs e)
        {
            offsetRelative = DiagonalOffsetRelative.ToHorizontalVertical;
        }

        private void radioButtonDiagonal_CheckedChanged(object sender, EventArgs e)
        {
            offsetRelative = DiagonalOffsetRelative.ToDiagonal;
        }
    }
}
